package com.service.device;

import com.common.ErrorCodeEnum;
import com.common.emums.DataStatus;
import com.common.exception.BusinessException;
import com.common.utils.StringUtils;
import com.core.springSecurity.common.SecurityUtils;

import com.dao.secondary.device.DevicePcbSimRecordInfoMapper;
import com.model.domain.device.GetDevicePcbSimRecordInfoDO;
import com.model.pojo.device.DevicePcbSimRecordInfo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;


/**
 * @Author: zql
 * @Description: 安卓版SIM信息记录服务
 * @Data: 2024-03-11
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class DevicePcbSimRecordInfoService {
    private final DevicePcbSimRecordInfoMapper devicePcbSimRecordInfoMapper;

    public List<DevicePcbSimRecordInfo> getPageList(GetDevicePcbSimRecordInfoDO getDevicePcbSimRecordInfoDO){
        PageHelper.clearPage();
        PageHelper.startPage(getDevicePcbSimRecordInfoDO.getPage(),getDevicePcbSimRecordInfoDO.getPageSize(),getDevicePcbSimRecordInfoDO.getSortRow()+getDevicePcbSimRecordInfoDO.getSortOrder());
        return devicePcbSimRecordInfoMapper.selectList(getDevicePcbSimRecordInfoDO);
    }
}
